//
//  FourBtn.m
//  诗韵
//
//  Created by Song on 2018/3/6.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "FourBtn.h"

@implementation FourBtn

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(void)awakeFromNib {
    [super awakeFromNib];
    
    // 文字居中
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

-(void)layoutSubviews {
    [super layoutSubviews];
    

    
    self.imageView.gsy_y = 0;  
    self.imageView.gsy_height = self.gsy_width * 0.4;
    self.imageView.gsy_width = self.gsy_width * 0.4;

    self.titleLabel.gsy_x = 0;
    self.titleLabel.gsy_y = self.imageView.gsy_height + 10;
    self.titleLabel.gsy_width = self.gsy_width;
    
    
    
}

@end
